import {ElNotification} from "element-plus";
import Notific from "@/components/notific.vue";

export default function play(){
    let audit = document.getElementById(`audit`)
    audio.play()
}

export function notice(type,message,title){
    ElNotification({
        title,
        type,
        icon:Notific,
        customClass:'type',
        duration: 3000,
        message,
        offset: 100,
    })
}


export function noticeToDuration(type,message,title,duration){
    ElNotification({
        title,
        type,
        icon:Notific,
        customClass:'type',
        duration,
        message,
        offset: 100,
    })
}

